#ifndef __CONTROL_H__
#define __CONTROL_H__

#include "stm32f1xx_hal.h"
#include "tim.h"
#include "OLED.h"

struct MyParam
{
	unsigned char PC13_Flag;
	int16_t Encoder_Count;
	unsigned int Tick;
	float BLDC_Duty;
	
	int16_t	Set_PA11_Freq; //
	float 	Set_PA11_Duty;

	
	
};
extern struct MyParam param;

void MY_Init_Handle(void);

int Read_Encoder_Pulse(void);
void PWM_Set_Proc(void);

#endif

